package com.yuanfeng.userms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yuanfeng.commoms.dto.PageUserTokenBeanDTO;
import com.yuanfeng.userms.entity.UserPlusOrderEntity;
import com.yuanfeng.userms.vo.PlusOrderEntityExpVO;
import com.yuanfeng.userms.vo.PlusOrderEntityVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @ClassName UserPlusOrderMapper
 * @Description plus会员充值订单表
 * @Author cyp
 * @Date 2023-06-29 09:28:31
 * @Version 1.0
 **/
@Mapper
public interface UserPlusOrderMapper extends BaseMapper<UserPlusOrderEntity> {

    /**
     * plus 会员充值订单表
     * @param map
     * @return
     */
    Integer insertplusorder(@Param("param") Map<String,Object> map);

    /**
     * 查询会员plus充值记录
     * @param page
     * @param pageUserTokenBeanDTO
     * @return
     */
    IPage<PlusOrderEntityVO> selectplusorder(IPage<PlusOrderEntityVO> page, @Param("param") PageUserTokenBeanDTO pageUserTokenBeanDTO);
    /**
     * 查询会员充值列表
     * @param page
     * @param param
     * @return
     */
    IPage<PlusOrderEntityExpVO> selectrechargelistexp(IPage<PlusOrderEntityExpVO> page , @Param("param")Map<String, Object> param);
    /**
     *查询会员充值列表
     * @param page
     * @param param
     * @return
     */
    IPage<Map<String,Object>> selectplusorderMap(IPage<Map<String,Object>> page , @Param("param") Map<String,Object> param);

    /**
     * 查询会员充值金额汇总
     * @param map
     * @return
     */
    Map<String,Object> selectPriceTotal(@Param("param") Map<String,Object> map);

}
